g = 130
i = "第一次"
if g <= 120:
    print(0)
if g > 120 and g <=140 and i == "第一次":
    print(250)
if g > 120 and g <=140 and i != "第一次":
    print(500)
if g > 140 and i == "第一次":
    print(1000)
if g > 140 and i != "第一次":
    print(2000)